#pragma once

class SMyLeafWidget : public SLeafWidget{
public:
	SLATE_BEGIN_ARGS(SMyLeafWidget)
		:_StartPoint(FVector2D(0, 0))
		,_EndPoint(FVector2D(0, 0)){
		
	}
	SLATE_ATTRIBUTE(FVector2D, StartPoint);
	SLATE_ATTRIBUTE(FVector2D, EndPoint);
	SLATE_END_ARGS()

	void Construct(const FArguments& InArgs);

private:
	virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;

	virtual FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override;

	TArray<FVector2D> Points;
};
